package com.moonstar.mapper;

import com.moonstar.pojo.MessageDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface MessageMapper {

    List<MessageDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(MessageDO messageDO);

    List<MessageDO> query(@Param("meId") Long meId, @Param("toId") Long toId);
}
